package com.xy.request;

import com.fasterxml.jackson.databind.annotation.JsonSerialize;
import com.fasterxml.jackson.databind.ser.std.ToStringSerializer;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;

import javax.validation.constraints.NotNull;
import java.io.Serializable;

/**
 * @author guojian
 */
@ApiModel(value = "心跳DTO", description = "心跳DTO")
@Data
public class HeartbeatRequest implements Serializable {
	/**
	 * 门禁点Id
	 */
	@NotNull(message = "门禁点Id不允许为空")
	@ApiModelProperty(value = "门禁点Id")
	private String positionId;

	/**
	 * 闸机编号
	 */
	@NotNull(message = "闸机编号不允许为空")
	@ApiModelProperty(value = "闸机编号")
	private String gateRef;

	/**
	 * 版本号
	 */
	@NotNull(message = "版本号")
	@ApiModelProperty(value = "版本号")
	private String versionNo;

	/**
	 * 场馆ID
	 */
	@JsonSerialize(
		using = ToStringSerializer.class
	)
	@ApiModelProperty(value = "场馆ID")
	private Long venueId;


}
